# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=ell
pkgver=0.69
pkgrel=0
pkgdesc="Linux library for embedded development"
url="https://01.org/ell"
arch="all"
license="LGPL-2.1-or-later"
makedepends="glib-dev linux-headers"
checkdepends="dbus"
subpackages="$pkgname-dbg $pkgname-dev"
source="https://mirrors.edge.kernel.org/pub/linux/libs/ell/ell-$pkgver.tar.gz
	use-libgen-basename.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-glib
	make
}

check() {
	# dbus tests don't work in parallel
	make -j1 check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
66e9494e2c4dad78a1e334f147de3c2f438d240dbcd53a85140c516871e16dfbf6699e7ad528285fb31016d94be42f98d5bea42a0412fc158d22e342d137cea2  ell-0.69.tar.gz
0762cc5c0471afbcdd17ecbd599f3ae6b0725ed79a845435f5f48c020990b973307c490362ead7550bfe7b61a36e6b663464a038808256f1a1ae7241f0851d1c  use-libgen-basename.patch
"
